Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spdx headers to CODE_OF_CONDUCT.md #1331

Closed
wants to merge 2 commits into from

Conversation

jepler
Copy link

@jepler jepler commented Oct 8, 2023

I wanted to place the Code of Conduct into a project which strictly follows REUSE guidelines.

I produced this list of contributors to the code of conduct from the list of git authors. For each distinct git author e-mail address, I found the earliest year of contribution and the most recent name associated with that address as an author.

I chose to leave the duplicated individual as their contributions appear to be affiliated with two different organizations.

I created this change by running the following script at commit 3fd3bf6:

set -eo pipefail

f () {
    set -x;
    reuse annotate \
        --year "$(git log -1 --oneline --reverse --date=format:%Y --format='%ad' --author $1 -- $2)" \
        --contributor "$(git log -1 --oneline --format='%aN <%aE>' --author $1)" \
        --license CC-BY-4.0 \
        "$2";
}

g () {
    git log --format='%aE' -- "$1" | sort -u | while read author; do f "$author" "$1"; done
}

g CODE_OF_CONDUCT.md

Note: I chose to show the earliest year as the copyright year based on my understanding as a layperson: usually the earliest date is the important one. I'm happy to re-roll to show latest, or a year range, and re-roll this PR if that's preferred. My goal is simply to ensure that contributors are acknowledged as well as to make the REUSE tool happy.

Thanks for your time in considering this PR.

Closes: #990.

jepler added 2 commits October 8, 2023 21:54
I wanted to place the Code of Conduct into a project which strictly
follows REUSE guidelines.

I produced this list of contributors to the code of conduct from the
list of git authors. For each distinct git author e-mail address, I
found the earliest year of contribution and the most recent name
associated with that address as an author.

I chose to leave the duplicated individual as their contributions
appear to be affiliated with two different organizations.

I created this change by running the following script at commit
3fd3bf6:
```sh

set -eo pipefail

f () {
    set -x;
    reuse annotate \
        --year "$(git log -1 --oneline --reverse --date=format:%Y --format='%ad' --author $1 -- $2)" \
        --contributor "$(git log -1 --oneline --format='%aN <%aE>' --author $1)" \
        --license CC-BY-4.0 \
        "$2";
}

g () {
    git log --format='%aE' -- "$1" | sort -u | while read author; do f "$author" "$1"; done
}

g CODE_OF_CONDUCT.md
```
@jepler
Copy link
Author

jepler commented Oct 29, 2024

Closing as there doesn't seem to be interest in taking this change.

@jepler jepler closed this Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the files compatible to reuse specification
1 participant